{% extends "::base.html.twig" %}

{% block title %}Ajouter une Question{% endblock %}

{% block other %}
	<h1 style="margin-bottom: 0;">Création d'une nouvelle Question</h1>
{% endblock %}
{% block body %}
<h4 style="text-align:left; padding-left: 48px; font-size: 11pt; font-weight: normal;">
	<a href="{{ path('readAllQuizz') }}">Les Quizz</a> > <a href="{{ path('readQuestion',{id:quizz.id})}}"> Quizz {{quizz.titre}}</a> > {{ question.question }}
 	<i style="float:right;margin-right: 48px; font-weight: lighter; font-size:13pt; margin-top: -3px;">
 		Promotion {{quizz.promotion.code}}
 	</i>
 </h4>
<form method="post" {{ form_enctype(form) }}>
      
		
		<div class="error">
			{{ form_errors(form.Question) }}
		</div>
		{{ form_label(form.Question) }}
		{{ form_widget(form.Question) }}

		<div class="error">
			{{ form_errors(form.decrementation) }}
		</div>
		{{ form_label(form.decrementation) }}
		{{ form_widget(form.decrementation) }}

     	 {{ form_widget(form._token) }}
      <input type="submit" class = "btn btn-primary" />
</form>
{% endblock %}
